Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow storing extra data on objects before persisting #17

Merged
merged 15 commits into from
Oct 30, 2024

Conversation

hahn-kev
Copy link
Collaborator

in this case we wanted to store commt Ids on our objects

@hahn-kev hahn-kev requested a review from myieye October 25, 2024 09:19
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: c5bbd2b Previous: 1f46e1b Ratio
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangePerformance(StartingSnapshots: 0) 13894032.7 ns (± 349161.7281754338) 3456289.8444444444 ns (± 214593.83164569302) 4.02
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangeWithManySnapshots(StartingSnapshots: 0) 4150403.2 ns (± 327431.08142250497) 3699745.5425531915 ns (± 494121.6697817738) 1.12
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangePerformance(StartingSnapshots: 1000) 14070519.2 ns (± 337502.7173601882) 3246536.9411764704 ns (± 91308.33685423991) 4.33
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangeWithManySnapshots(StartingSnapshots: 1000) 5144490.4 ns (± 474222.7315656642) 3784068.7966101696 ns (± 165621.81273474856) 1.36
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangePerformance(StartingSnapshots: 10000) 13306648.4 ns (± 466980.7254119453) 2797261.086956522 ns (± 106666.84588293821) 4.76
SIL.Harmony.Tests.DataModelPerformanceBenchmarks.AddSingleChangeWithManySnapshots(StartingSnapshots: 10000) 13231247.4 ns (± 2210424.871172518) 10299036.5 ns (± 152038.38387368855) 1.28

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good 😎

src/SIL.Harmony/CrdtConfig.cs Outdated Show resolved Hide resolved
@hahn-kev hahn-kev merged commit c7dea1f into main Oct 30, 2024
0 of 3 checks passed
@hahn-kev hahn-kev deleted the chore/add-extra-data branch October 30, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants